package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.ITreeService;
import com.scs.application.modules.base.entity.Location;

import java.util.Map;

/**
 * <p>
 * Service
 * </p>
 */

public interface LocationService extends ITreeService<Location> {
    /**
     * 获取仓库的默认库位
     *
     * @param warehouseId
     * @return
     */
    Location getDefaultLocation(String warehouseId);

    /**
    * @Description： 查询货位 根据code
    */
    Location getLocationByCode(String code);

    Page<Map> pageForSelect(QueryContext context, Map<String, Object> userParam);
}

